package com.briup.day11;

import com.briup.day11.bean.Animal;
import com.briup.day11.bean.Cat;
import com.briup.day11.bean.Dog;

public class Test_Animal {
    public static void main(String[] args) {
        Animal a=new Animal();
        a.eat();
        a.sleep();
        System.out.println("--------------");
        Cat c=new Cat();
        c.eat();
        c.sleep();
        System.out.println("--------------");
        Dog d=new Dog();
        d.eat();
        d.sleep();
    }
}
